export class Schedule{
    jobId: string;
    jobName: string;
    jobGroup: string;
    jobStatus: string;
    cronExpression: string;
    desc: string;
    interfaceName: string;
    constructor(options: {
        jobId?: string;
        jobName?: string;
        jobGroup?: string;
        jobStatus?: string;
        cronExpression?: string;
        desc?: string;
        interfaceName?: string;
    } = {}){
        this.jobId = options.jobId;
        this.jobName = options.jobName;
        this.jobGroup = options.jobGroup;
        this.jobStatus = options.jobStatus;
        this.cronExpression = options.cronExpression;
        this.desc = options.desc;
        this.interfaceName = options.interfaceName;
    }
}

export class ScheduleLog{
    jobName:string;
    jobGroup:string;
    interfaceName:string;
    startTime:string;
    endTime:string;
    costTime:string;
    status:string;
    errorMsg:string;
    constructor(options:{
        jobName?:string;
        jobGroup?:string;
        interfaceName?:string;
        startTime?:string;
        endTime?:string;
        costTime?:string;
        status?:string;
        errorMsg?:string;
    } = {}){
        this.jobName = options.jobName;
        this.jobGroup = options.jobGroup;
        this.interfaceName = options.interfaceName;
        this.startTime = options.startTime;
        this.endTime = options.endTime;
        this.costTime = options.costTime;
        this.status = options.status;
        this.errorMsg = options.errorMsg;
    }
}